//package com.daocao.hua.activity;
//
//import android.annotation.TargetApi;
//import android.os.Bundle;
//import android.os.CountDownTimer;
//import android.support.v4.content.ContextCompat;
//
//import com.daocao.hua.R;
//import com.daocao.hua.constant.Const;
//
//import butterknife.ButterKnife;
//import butterknife.Unbinder;
//
///**
// * Created by xsooy-pc on 2017/9/22.
// */
//
//public class ForgetPwdV2Activity extends BaseActivity {
//    private Unbinder unbinder;
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setBaseContentView(R.layout.activity_forget_v2);
//        baseInitView(this, "ForgetPwdV2Activity", Const.ViewType.ACTIVITY);
//        unbinder = ButterKnife.bind(this);
//        init();
//    }
//
//    private void init() {
//    }
//
//
//    @TargetApi(16)
//    private void resetBtn() {
//        if (this.timer != null)
//            this.timer.cancel();
////        codeBtn.setText(getResources().getString(R.string.send_code_again));
////        codeBtn.setEnabled(true);
//    }
//
//    private CountDownTimer timer = new CountDownTimer(60000L, 1000L) {
//        public void onFinish() {
//            resetBtn();
//        }
//
//        @TargetApi(16)
//        public void onTick(long paramAnonymousLong) {
////            codeBtn.setEnabled(false);
////            codeBtn.setText(paramAnonymousLong / 1000L + getResources().getString(R.string.resend));
//        }
//    };
//
//    @Override
//    protected void onDestroy() {
//        super.onDestroy();
//        if (timer != null) {
//            timer.cancel();
//            timer = null;
//        }
//        unbinder.unbind();
//        unbinder = null;
//    }
//}
